<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <!-- 引入PDFObject.js -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.2.5/pdfobject.js"></script>
    <style>
        #pdf-viewer {
            width: 80vw;
            height: 80vh;
        }

        /* #pdf-viewer embed,
        #pdf-viewer object {
            width: 100%;
            height: 100%;
            position: absolute;
        }

        #pdf-viewer ::-webkit-media-controls {
            display: none !important;
        } */
    </style>
    </style>
    <!-- 使用PDFObject预览PDF -->
    <div id="pdf-viewer"></div>
    <script>
        window.onload = function () {
            PDFObject.embed("cc960b25b231bdbe047bcf786045f64a.pdf", "#pdf-viewer", { page: "2" })
        };

        // document.getElementById('pdf-viewer').addEventListener('contextmenu', (e) => {
        //     e.preventDefault();
        // });
    </script>
</body>

</html>